<script charset="utf-8" type="text/javascript" src="__PUBLIC__/includes/javascript/jquery.plugins/jquery.validate.js" ></script>
<script type="text/javascript">
//<!CDATA[
$(function(){
    $('#appForm').validate({
        errorPlacement: function(error, element){
            $(element).next('.field_notice').hide();
            $(element).after(error);
        },
        success       : function(label){
            label.addClass('right').text('OK!');
        },
        onkeyup    : false,
        rules : {
        	appid: {
                required: true
            },
            appsecret: {
                required : true
            }
        },
        messages : {
        	appid: {
                required: '开发者appId不能为空'
            },
            appsecret: {
                required: '开发者appSecret不能为空'
            }
        }
    });
});
//]]>
</script>
<style>
	.info2{
		margin-left:100px;
		margin-top: 20px;
	}
	.info2 table tr th{
		line-height:40px;
		text-align:left;
	}
	.info2 p{
		line-height:20px;
		margin-top: 10px;
	}
</style>
<body>
<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">首页</a></li>
    <li><a href="#">微信开发者ID管理</a></li>
    </ul>
</div>
<div class="info2">
	<form action="{:U('addSettingApp')}" id="appForm" method="post">
	    <table>
	           <tr>
	            <th>微信AppId：</th>
	            <td><input type="text" name="appid" class="dfinput"  size="50" value="{$appid}" placeholder="微信AppId"/></td>
	        </tr>
	        <tr>
	            <th>微信AppSecret：</th>
	            <td><input type="text" name="appsecret" class="dfinput" size="50" value="{$appsecret}" placeholder="微信AppSecret"/></td>
	        </tr>
	        <tr>
	            <th></th>
	            <td class="ptb20">
	                <input class="formbtn" type="submit" name="Submit" value="提交" />
	                <input class="formbtn" type="reset" name="reset" value="重置" />
	            </td>
	        </tr>
	        <tr>
	        	<td colspan="2">
	        		<p>1、先填写微信AppId和微信AppSecret（这个2个值需要到微信公众平台获取）</p>
	        		<p>2、微信AppSecret查看需要用开通公众号的用户扫码才能看到</p>
	        		<p>3、请更新/ThinkPHP/Library/Vendor/WxPayPubHelper/WxPay.pub.config.php 文件中的 AppID和AppSecret</p>
	        		<img alt="" src="__PUBLIC__/admin/shuoming/appid_appsecert.jpg" style="margin-left: 40px;">
	        	</td>
	        </tr>
	    </table>
    </form>
</div>